home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / java / appleevent send and receive / readme < prev    next >
Encoding:
Text File  |  2000-06-23  |  2.7 KB  |  63 lines

  1. AppleEvent Send and Receive
  2. A sample showing how to send and receive AppleEvents from Java using JDirect 2.
  3. For use with MRJ 2.1 and later.
  4.  
  5. Version 1.0, 4/15/1999
  6. by Levi Brown, and Michael Hopkins
  7. Apple Worldwide Developer Technical Support
  8. Apple Computer, Inc.
  9.  
  10. Thanks to Steve Zellers, and Andy Bachorski.
  11.  
  12. Copyright ©1999 Apple Computer, Inc.
  13. All rights reserved.
  14.  
  15.  
  16. Included in this archive:
  17.  
  18.     AESend and AEReceive, JBound applications.
  19.  
  20.     CodeWarrior and Visual Cafe projects for the AESend and AEReceive
  21.     applications.
  22.  
  23.     All sources and resource files used to build the applications, including,
  24.     an 'aete' resource to make the AEReceive application scriptable. Note: this
  25.     does not include the JDirect wrapper sources.
  26.     
  27.     Receive Test Script, an AppleScript to send our event to the AEReceive
  28.     application.
  29.  
  30.     Toolbox.jar, contains the classes for the JDirect wrapper functions for
  31.     many commonly used Macintosh Toolbox functions.  The sources for these
  32.     classes are available as part of the MRJ 2.1 SDK installation (MRJ SDK
  33.     2.1:JDirect:JDirect 2.0 Sample Code:).  The MRJ SDK is available for
  34.     download at:
  35.     http://developer.apple.com/java/text/download.html#sdk
  36.  
  37.  
  38. To run the samples:
  39.  
  40.     Run the AEReceive application by double-clicking on it.
  41.         (Note that the AEReceive.jar and Toolbox.jar files need to be located in
  42.         the same directory as the application.)
  43.         The a message will come up announcing the installation of the
  44.         AppleEvent handler.
  45.  
  46.     Run the AESend application by double-clicking on it.
  47.         (Note that the AESend.jar and Toolbox.jar files need to be located in
  48.         the same directory as the application.)
  49.         Send the text displayed in the AESend application to the AEReceive
  50.         application by clicking on the Send Event button, or hitting Enter
  51.         while in the text field.
  52.  
  53.     You can also use the Receive Test Script AppleScript to send the AppleEvent
  54.         to the AEReceive application.  In either case, the AEReceive
  55.         application will reply with a text message. 
  56.  
  57.  
  58. For more information please refer to the sources, which are well commented.
  59.  
  60. ______________________________________________________________________________
  61. You may incorporate this sample code into your applications without restriction, though the sample code has been provided "AS IS" and the responsibility for its operation is 100% yours.  However, what you are not permitted to do is to redistribute the source as "Apple Sample Code" after having made changes. If you're going to re-distribute the source, we require that you make it clear in the source that the code was descended from Apple Sample Code, but that you've made changes.  
  62.  
  63.